import Vue from 'vue';
import VueRouter from 'vue-router';
import routes from './router';
import App from './App';
import store from './store';


//灰常重要，知会 webpack 允许此模块的热更新
if (module.hot) {
	module.hot.accept();
}

const router = new VueRouter({
	routes
});

Vue.use(VueRouter);

new Vue({
	el: '#app',
  store,
	router,
	render: h => h(App)
})
